package com.xiaoxi.open.design.structural.compositepattern.composite.company;

import lombok.extern.slf4j.Slf4j;

/**
 * @ClassName Employee
 * @Description
 * @Author xiaoxi
 * @Date 2024/10/20 22:07
 * @Version 1.0
 */
@Slf4j
public class Employee implements Company {

    private String name;

    public Employee(String name) {
        this.name = name;
    }

    @Override
    public void add(Company company) {

    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void printList() {
        log.info("My name is : {}", name);
    }


}
